<template>
    <div style="background-color: rosybrown;">
        我是女儿
        <button @click="$emit('girl',100)">向老爸汇报成绩</button>
        <p>我获得了5000奖学金，给爸爸3000<button @click="store.increment(3000)">给爸爸钱</button></p>
    </div>
</template>

<script>
import { useMyStore } from '@/store/mystore';
export default{
    data(){
        return{
            store:useMyStore()
        }
    },
}
</script>